package cn.xiaomubiao.oschine.contants;

import android.support.v4.app.Fragment;

import cn.xiaomubiao.oschine.R;
import cn.xiaomubiao.oschine.fragment.ExploreFragment;
import cn.xiaomubiao.oschine.fragment.MyInformationFragment;
import cn.xiaomubiao.oschine.fragment.TweetsViewPagerFragment;
import cn.xiaomubiao.oschine.fragment.NewsMianFragment;


/**
 * Created by Administrator on 2017/4/1 0001.
 *  底部标签的枚举类
 */

public enum MainTab {
    NEWS("news",NewsMianFragment.class,"综合", R.drawable.tab_icon_new),
    TWEETS("tweets",TweetsViewPagerFragment.class,"动弹",R.drawable.tab_icon_tweet),
    CENTER("center",ExploreFragment.class,"中心",R.drawable.tab_icon_tweet),
    EXPROLER("exproler",ExploreFragment.class,"发现",R.drawable.tab_icon_explore),
    ME("me",MyInformationFragment.class,"我",R.drawable.tab_icon_me);
    private  String tag; //标记
    private Class<? extends Fragment> clazz;
    private String title;//标题
    private int resId;

    private  MainTab(String tag, Class<? extends Fragment> clazz, String title,int resId ) {
        this.tag = tag;
        this.clazz = clazz;
        this.title = title;
       this.resId = resId;
    }

    public String getTag() {
        return tag;
    }

    public Class<? extends Fragment> getClazz() {
        return clazz;
    }

    public String getTitle() {
        return title;
    }

    public int getResId() {
        return resId;
    }
}
